;两个长度相同的大小写转换问题2
assume cs:code,ds:data
data segment
    db 'HelLo'    ;小写转大写
    db 'WoRlD'    ;大写转小写
data ends
code segment
start:
    mov ax,data
    mov ds,ax

    mov cx,5
    mov bx,0
 l: mov al,[bx]
    and al,11011111b
    mov [bx],al
    mov al,[bx+5]
    or al,00100000b
    mov [bx+5],al
    inc bx
    loop l 

    mov ax,4c00h
    int 21h
code ends
end start